/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author jzajaczek
 */
@ManagedBean
@RequestScoped
public class klasaBean {

    /**
     * Creates a new instance of klasaBean
     */
    public klasaBean() {
    }
    
    private double a = 10;
    private double b = 1;
    private double c;

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    public double getC() {
        return c = this.a + this.b;
    }

    public void setC(double c) {
        this.c = c;
    }
}
